package pro.cherish.knowledgedemovalid.web;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;

// @Controller
// @RequestMapping("/error")
public class BaseErrorController  implements ErrorController {

    @Override
    public String getErrorPath() {
        System.out.println("跳转到自定义页面");
        return "myError";
    }
    @RequestMapping
    public String error() {
        return getErrorPath();
    }
}
